{template "header.html"}

<div class="page-wrapper-row full-height">
    <div class="page-wrapper-middle">

        <div class="page-content">
            <div class="container">
                <div class="page-content-inner">



                    <div class="row">
                        <div class="col-md-4">
                            <div class="bg-white">
                                <div id="myCarousel" class="carousel slide" data-ride="carousel">
                                    <!-- 幻灯图片 -->
                                    <div class="carousel-inner">
                                        {php $block=dr_block('index');}
                                        {loop $block.file $i $file}
                                        <div class="item {if $i==0}active{/if}">
                                            <a href="{$block['title'][$i]}" target="_blank"><img src="{dr_thumb($file, 360, 250)}" style="width:360px;height:245px" /></a>
                                        </div>
                                        {/loop}
                                    </div>
                                    <ol class="carousel-indicators">
                                        <!-- 重复循环上面的结果 -->
                                        {loop $block.file $i $file}
                                        <li data-target="#myCarousel" data-slide-to="{$i}" {if $i==0}class="active"{/if}></li>
                                        {/loop}
                                    </ol>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-8">
                            <div class="portlet light" style="height: 245px;">
                                <div class="portlet-title ">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <!--调用type=0的头条数据-->
                                            {list action=navigator type=0}
                                            {if $key==0}
                                            <h4><a cl href="{$t.url}" {if $t.target}target="_blank"{/if} class="title">{$t.title}</a></h4>
                                            {else}
                                            {if $key==1}<p class="links">{/if}
                                            <a href="{$t.url}" {if $t.target}target="_blank"{/if}>[{$t.title}]</a>
                                            {if $key==$count-1}</p>{/if}
                                            {/if}
                                            {/list}
                                        </div>
                                    </div>
                                </div>
                                <div class="portlet-body">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <ul class="list-unstyled">
                                                <!--最新10条-->
                                                {list action=module module=book order=updatetime num=5}
                                                <li style="line-height: 23px"><span class="badge badge-empty badge-success"></span>&nbsp;<a href="{$t.url}" class="title">{dr_strcut($t.title, 28)}</a></li>
                                                {/list}
                                            </ul>
                                        </div>
                                        <div class="col-md-6">
                                            <ul class="list-unstyled">
                                                <!--最新10条-->
                                                {list action=module module=book order=updatetime num=5,5}
                                                <li style="line-height: 23px"><span class="badge badge-empty badge-success"></span>&nbsp;<a href="{$t.url}" class="title">{dr_strcut($t.title, 28)}</a></li>
                                                {/list}
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>


                    {category module=book pid=0 return=c}
                    <div class="row">
                        <div class="">
                            <div class="portlet light">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <span class="caption-subject bold uppercase"><a class=" font-green" href="{$c.url}">{$c.name}</a></span>
                                    </div>
                                </div>
                                <div class="portlet-body">
                                    <div class="row index-container">
                                        {module module=book catid=$c.id order=updatetime num=8}
                                        <div class="col-sm-3">
                                            <div class="tile-container">
                                                <div class="tile-thumbnail text-center">
                                                    <a href="javascript:;">
                                                        <a href="{$t.url}" >
                                                            <img src="{dr_thumb($t.thumb, 250, 150)}" width="250" height="150">
                                                            <div class="{if $t.zt}zt1{else}zt0{/if}"></div>
                                                        </a>
                                                    </a>
                                                </div>
                                                <div class="tile-title margin-bottom-20">
                                                    <h5><a href="{$t.url}" class="title">{dr_strcut($t.title, 25)}</a></h5>
                                                </div>
                                            </div>
                                        </div>
                                        {/module}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    {/category}

                    <!-- 友情链接 -->
                    <div class="row">
                        <div class="">
                            <div class="portlet light">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <span class="caption-subject bold uppercase">友情链接</span>
                                    </div>
                                </div>
                                <div class="portlet-body">
                                    <div class="row">
                                        <div class="col-md-12">
                                            {list action=navigator type=1}
                                            <a href="{$t.url}" title="{$t.title}" {if $t.target}target="_blank"{/if}>{$t.name}</a>
                                            {/list}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                </div>
            </div>
        </div>
    </div>
</div>

{template "footer.html"}